﻿using System;

namespace Zinnia.Lite.Core
{
    /// <summary>
    /// 数据库对象接口
    /// </summary>
    public interface IZinniaLite
    {
    }
    /// <summary>
    /// ZinniaLite唯一标识
    /// </summary>
    public interface IZinniaLiteIdentity : IZinniaLite
    {
        /// <summary>
        /// 主键
        /// </summary>
        string Id { get; set; }
    }
    /// <summary>
    /// Zinnia.Lite ORM默认基础接口
    /// </summary>
    public interface IZinniaBaseLite : IZinniaLiteIdentity
    {
        /// <summary>
        /// 创建时间
        /// </summary>
        DateTime CreateTime { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        DateTime ModifyTime { get; set; }
        /// <summary>
        /// 版本号
        /// </summary>
        int Version { get; set; }
    }
}
